home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODFDev / ODF / OS / FWOSMisc / SLVersn.h < prev   
Encoding:
Text File  |  1996-09-17  |  1.2 KB  |  56 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                SLVersn.h
  4. //    Release Version:    $ ODF 2 $
  5. //
  6. //    Author:                Damon Cokenias
  7. //
  8. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  9. //
  10. //========================================================================================
  11.  
  12. #ifndef SLVERSN_H
  13. #define SLVERSN_H
  14.  
  15. enum FW_EVersionStage {
  16.     FW_kDevelopment = 0x20,
  17.     FW_kAlpha = 0x40,
  18.     FW_kBeta = 0x60,
  19.     FW_kFinal = 0x80
  20. };
  21.  
  22. typedef unsigned long FW_Version;
  23. //    FW_Version format (from MSB to LSB)
  24. //    8 bits        Major version number in BCD
  25. //    4 bits        Minor version number in BCD
  26. //    4 bits        Fix version number in BCD
  27. //    8 bits        Stage
  28. //    8 bits        Internal in BCD
  29. //
  30. //    Thus, version 1.2.3b4 is 0x01236004
  31.  
  32. // Export or Import functions for CFM-68K [sfu]
  33.  
  34. #if defined(FW_ODFLIB_IMPORT)
  35. #pragma import on
  36. #elif defined(FW_ODFLIB)
  37. #pragma export on
  38. #endif
  39.  
  40. FW_EXTERN_C_BEGIN
  41.  
  42. extern FW_Version FW_GetODFLibraryVersion (Environment* ev);
  43.     // Returns the ODFLibrary version number in the Macintosh 'vers' format.
  44.  
  45. FW_EXTERN_C_END
  46.  
  47. // For CFM-68K [sfu]
  48.  
  49. #if defined(FW_ODFLIB_IMPORT)
  50. #pragma import off
  51. #elif defined(FW_ODFLIB)
  52. #pragma export off
  53. #endif
  54.  
  55. #endif
  56.